package com.hrb.douban.mview;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.hrb.douban.CustomApplication;
import com.hrb.douban.utils.ImageUtil;
import com.youth.banner.loader.ImageLoader;

/**
 *  轮播图
 */
public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        ImageUtil.loadIntoUseFitWidth(path.toString(),imageView);
        //Glide.with(CustomApplication.getContext()).load(path.toString()).centerCrop().into(imageView);
    }
}
